package com.dyh.quickdemo.bizDemo.wmsUrls;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class WmsUrlBean {

	private String qimenUrl; 
    private String leqeeUrls; 
    private Map<Long ,String> leqeeUrlMap;
    private String jdUrl;
    private String clpsMsgUrl;
    private String yihuangUrl;
    private String pxUrl;

    public String getPxUrl() {
        return pxUrl;
    }

    public void setPxUrl(String pxUrl) {
        this.pxUrl = pxUrl;
    }

    public String getQimenUrl() {
        return qimenUrl;
    }
    public void setQimenUrl(String qimenUrl) {
        this.qimenUrl = qimenUrl;
    }
    public String getLeqeeUrls() {
		return leqeeUrls;
	}
	public void setLeqeeUrls(String leqeeUrls) {
		this.leqeeUrls = leqeeUrls;
	}
	public String getJdUrl() {
        return jdUrl;
    }
    public void setJdUrl(String jdUrl) {
        this.jdUrl = jdUrl;
    }
	public Map<Long, String> getLeqeeUrlMap() {
		if(leqeeUrlMap == null
				&& StringUtils.isNotBlank(leqeeUrls)) {
			JSONObject leqeeUrlsJson = JSONObject.parseObject(leqeeUrls);
			leqeeUrlMap = new HashMap<>();
			for(Entry<String, Object> entry : leqeeUrlsJson.entrySet()){
				leqeeUrlMap.put(Long.parseLong(entry.getKey()), (String)entry.getValue());
		    }
		}
		return leqeeUrlMap;
	}
    public String getClpsMsgUrl() {
        return clpsMsgUrl;
    }
    public void setClpsMsgUrl(String clpsMsgUrl) {
        this.clpsMsgUrl = clpsMsgUrl;
    }

    public String getYihuangUrl() {
        return yihuangUrl;
    }

    public void setYihuangUrl(String yihuangUrl) {
        this.yihuangUrl = yihuangUrl;
    }
}
